package com.shop.cereshop.app.dao.order;

import com.shop.cereshop.app.domain.TicketInfo.CereShopTicketInfo;
import com.shop.cereshop.commons.domain.order.CereOrderProduct;
import com.shop.cereshop.commons.domain.product.CereProductSku;
import com.shop.cereshop.commons.domain.product.CereShopProduct;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @description
 * @Author YF
 * @Date 日期:2021/6/23 时间:14:03
 */
@Mapper
public interface DlCereOrderProductDao {


    List<CereOrderProduct> findCereOrderProductByOrderId(@Param("orderId") Long orderId);


    CereShopProduct findCereShopProductByProductId(@Param("productId") Long productId);


    CereProductSku findCereProductSkuByProductId(@Param("productId") Long productId);


    CereShopTicketInfo findCereShopTicketInfoByOrderId(@Param("orderId") Long orderId);


    int findCereShopTicketInfoBycustomerCardCount(String customerCard);


    List<CereShopTicketInfo> findCereShopTicketInfoBycustomerCard(String customerCard);


    int setMessageByOrderId(@Param("orderId") Long orderId, @Param("partnerOrderId") String partnerOrderId, @Param("partnerCode") String partnerCode, @Param("partnerQRCodeAddress") String partnerQRCodeAddress);


}
